<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=path%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>个人中心</title>
<script type="text/javascript" src="js/jquery-1.42.min.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href="css/headbott.css" type="text/css" />

</head>
<style>
* {
	margin: 0;
	padding: 0;
}

body {
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	font-family: "微软雅黑", Arial;
	text-align: center;
	color: #000;
}

div, p, h1, h2, h3, h4, h5, h6, ul, li, ol, dl, dt, dd, img, form {
	margin: 0;
	padding: 0;
	border: 0;
}

ul, ol, li {
	list-style: none;
}

img {
	border: 0;
	vertical-align: top;
}

a {
	text-decoration: none;
	cursor: pointer;
	color: #5A5A5A
}

a:hover {
	text-decoration: underline;
}

table, td, tr, th, input, select {
	font-size: 13px;
}

input {
	font-family: Arial;
} /*text and password width*/
table, td {
	border-collapse: collapse;
}

a:link {
	text-decoration: none;
	border: none;
}

a:hover {
	text-decoration: none;
	border: none;
}

a:active {
	
}

a {
	
}

a:hover, a:visited {
	
}

.clear {
	zoom: 1;
}

.clear:after {
	display: block;
	clear: both;
	height: 0;
	content: ''
}

body {
	background: #f9f9f9;
	color: #5A5A5A
}

.user-con {
	width: 1000px;
	margin: 20px auto;
	zoom: 1;
	overflow: auto;
}

.user-conl {
	float: left;
	width: 175px;
	border: 1px solid #c0c0c0;
	background: #f9f9f9;
	border-right: none
}

.user-conl li i {
	width: 19px;
	height: 20px;
	position: absolute;
	left: 30px;
	top: 15px;
	display: inline-block;
}

.user-conl li .i1 {
	background: url("images/Myhome_icom.png") no-repeat 0 0;
}

.user-conl li .i2 {
	background: url("images/Myhome_icom.png") no-repeat 0 -50px;
}

.user-conl li .i3 {
	background: url("images/Myhome_icom.png") no-repeat 0 -100px;
}

.user-conl li .i4 {
	background: url("images/Myhome_icom.png") no-repeat 0 -153px;
}

.user-conl li .i5 {
	background: url("images/Myhome_icom.png") no-repeat 0 -153px;
}

.user-conl li .i6 {
	background: url("images/Myhome_icom.png") no-repeat 0 -50px;
}

.user-conl li .i7 {
	background: url("images/Myhome_icom.png") no-repeat 0 -206px;
}

.user-conl li .i8 {
	background: url("images/Myhome_icom.png") no-repeat 0 -253px;
}

.user-conl li .i9 {
	background: url("images/Myhome_icom.png") no-repeat 0 -323px;
}

.user-conl li .i10 {
	background: url("images/Myhome_icom.png") no-repeat 0 -376px;
}

.user-conl li {
	position: relative
}

.user-conl li a {
	display: inline-block;
	height: 50px;
	width: 175px;
	line-height: 50px;
	border-left: 2px solid #f9f9f9;
	border-bottom: 1px #ebebeb solid;
}

.user-conl li b {
	display: inline-block;
	height: 50px;
	width: 175px;
	line-height: 50px;
	border-left: 2px solid #f9f9f9;
	border-bottom: 1px #ebebeb solid;
}

.user-conl li a:hover {
	background: #fff;
	color: #009fd6;
	border-bottom: 1px solid #009fd6;
	border-left: 2px solid #009fd6;
}

.user-conl li .u-hover {
	background: #fff;
	border-left: 2px solid #f9f9f9;
	border-bottom: 1px solid #009fd6;
	border-left: 2px solid #009fd6;
	color: #009fd6
}

.user-conl li .a-tit {
	font-size: 18px;
}

.user-conl li:hover .i1 {
	background: url("images/Myhome_icom.png") no-repeat -19px 0;
}

.user-conl li:hover .i2 {
	background: url("images/Myhome_icom.png") no-repeat -19px -50px;
}

.user-conl li:hover .i3 {
	background: url("images/Myhome_icom.png") no-repeat -19px -100px;
}

.user-conl li:hover .i4 {
	background: url("images/Myhome_icom.png") no-repeat -19px -153px;
}

.user-conl li:hover .i5 {
	background: url("images/Myhome_icom.png") no-repeat -19px -153px;
}

.user-conl li:hover .i6 {
	background: url("images/Myhome_icom.png") no-repeat -19px -50px;
}

.user-conl li:hover .i7 {
	background: url("images/Myhome_icom.png") no-repeat -19px -206px;
}

.user-conl li:hover .i8 {
	background: url("images/Myhome_icom.png") no-repeat -19px -253px;
}

.user-conl li:hover .i9 {
	background: url("images/Myhome_icom.png") no-repeat -20px -323px;
}

.user-conl li:hover .i10 {
	background: url("images/Myhome_icom.png") no-repeat -20px -376px;
}

.user-conr {
	float: left;
	width: 800px;
	border-zoom: 1;
	overflow: auto;
	background: #fff
}

.user-conr_tab li {
	cursor: pointer;
	width: 100px;
	height: 35px;
	line-height: 35px;
	border: 1px solid #c0c0c0;
	float: left;
	margin-left: 10px;
	border-bottom: none;
	background: #ccc;
}

.user-conr_tab  .cur {
	background: #fff;
}

.user-conr_tab {
	width: 778px;
	height: 35px;
	border: 1px solid #c0c0c0;
	padding: 20px 0 0 20px;
}

.user-conr_tab2 {
	width: 798px;
	min-height: 556px;
	overflow: auto;
	zoom: 1;
	border: 1px solid #c0c0c0;
	border-top: none;
}

.user-conr_tab2 li {
	display: none;
	padding: 20px;
}

.user-conr_tab2 .curq2 {
	display: block;
}
</style>
<body>
	<div id="header">
		<jsp:include page="/WEB-INF/view/navigation.jsp"></jsp:include>
	</div>
	<script>
		var d_var = $(".search .search-txt").val();
		$(".search .search-txt").focus(function() {
			if ($(this).val() == d_var) {
				$(this).val("");
			}
		});

		$(".search .search-txt").blur(function() {
			if ($(this).val() == "") {
				$(this).val("找项目");
			}
		});
	</script>
	<div class="user-con">
		<div class="user-conl">
			<ul>
				<li><b class="a-tit">项目管理</b></li>
				<li><i class="i1"></i><a class="u-hover" target="iframe0" href="sns/userproducd">发起的项目</a></li>
				<li><i class="i2"></i><a href="">参与的项目</a></li>
				<li><i class="i4"></i><a href="">点赞的项目</a></li>
				<li><i class="i6"></i><a href="">资金管理</a></li>
				<li><b class="a-tit">消息管理</b></li>
				<li><i class="i4"></i><a href="">我的评论</a></li>
				<li><i class="i4"></i><a href="">我的私信</a></li>
				<li><b class="a-tit">个人设置</b></li>
				<li><i class="i7"></i><a href="">资料修改</a></li>
				<li><i class="i8"></i><a href="">安全信息</a></li>
				<li><i class="i9"></i><a href="">收件地址管理</a></li>
				<li><i class="i10"></i> <a target="iframe0"
					href="sns/to/certification" onclick="return checkAuthentication()">实名认证</a></li>

			</ul>
		</div>
		<div class="user-conr">
			<div class="user-conr_tab">
				<ul>
					<li class="cur">所有项目</li>
					<li>众筹中项目</li>
				</ul>
			</div>
			<div class="user-conr_tab2">
				<!--  src="sns/to/certification"  -->
				<iframe class="J_iframe" name="iframe0" width="100%" height="600px"
					frameborder="0" data-id="" seamless> </iframe>
				<!-- <iframe class="J_iframe" name="iframe0" width="100%" height="600px" src="sns/to/certification" frameborder="0" data-id="" seamless> </iframe> -->
				<!-- <ul>
                <li class="curq2">还有没有项目列表记录111111111</li>
                <li>还有没有项目列表记录000000000</li>
            </ul> -->
			</div>
		</div>
		<script>
			$(document).ready(
					function() {
						$(".user-conr_tab li").click(
								function() {
									$(".user-conr_tab li").eq($(this).index())
											.addClass("cur").siblings()
											.removeClass('cur');
									$(".user-conr_tab2 li").hide().eq(
											$(this).index()).show();
								})
					});
		</script>
	</div>
	<div id="bottom">
		<div class="bot-con1">
			<ul>
				<li class="bot-con1-li1">我们已经做到</li>
				<li>单项支持人数<span class="inde-span1"></span></li>
				<li>单项筹款金额<span class="inde-span2"></span></li>
				<li>累计筹款金额<span class="inde-span3"></span></li>
			</ul>
		</div>
		<div class="bot-con1 bot-con2">
			<ul>
				<li class="bot-con1-li1">发起项目流程</li>
				<li><span class="inde-span4"></span>发起人创建项目</li>
				<li><span class="inde-span5"></span>项目获得支持</li>
				<li><span class="inde-span6"></span>发起人发放回报</li>
				<li><span class="inde-span7"></span>用户收到回报</li>
			</ul>
		</div>
		<jsp:include page="/WEB-INF/view/tail.jsp"></jsp:include>
	</div>
	<script type="text/javascript">
		var flag = false;
		function checkAuthentication() {
			$.ajax({
				type : 'GET',
				url : 'sns/certification',
				dataType : 'json',
				data : {

				},
				async : false,
				success : function(data) {
					if (data.code == 101) {
						alert("没有登录重写登录");
						window.location.href = "/Crowdfunding/user/to/login";
						flag = false;
					} else if (data.code == 103) {
						alert("认证审核中");
						flag = false;
					} else if (data.code == 104) {
						alert("你已经实名认证");
						flag = false;
					} else if (data.code == 105) {
						alert("审核失败,请重新审核");
						flag = true;
						/* window.location.href="/Crowdfunding/sns/to/certification"; */
					} else {
						/* window.location.href="/Crowdfunding/sns/to/certification"; */
						flag = true;
					}
					/* var a= checkAuthentication(); */
				},
				error : function(msg) {
					alert("网络异常");
				}
			});
			return flag;

		}
	</script>

</body>
</html>